﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;

namespace FizzBuzzSimpleDesktop
{
    class FizzBuzzApplication : Application
    {
        [STAThread]
        static void Main(string[] args)
        {
            FizzBuzzApplication app = new FizzBuzzApplication();
            app.Startup += new StartupEventHandler(app_Startup);
            app.Exit += new ExitEventHandler(app_Exit);
            app.Run();
        }

        static void app_Exit(object sender, ExitEventArgs e)
        {
            MessageBox.Show("Application Exit");
        }

        static void app_Startup(object sender, StartupEventArgs e)
        {
            
            MyWindow mainWindow = new MyWindow("My First WPF App", 200, 300);
            mainWindow.Show();

//            Window mainWindow = new Window();
//            mainWindow.Title = "My First WPF Application";
//            mainWindow.Height = 200;
//            mainWindow.Width = 300;
//            mainWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
//            mainWindow.Show();
        }
    }
}
